package io.github.yotta.logger.manager.adaptor;

import io.github.yotta.logger.api.request.LogCreateRequest;
import io.github.yotta.logger.manager.service.LogService;
import io.github.yotta.logger.message.support.AbstractManagerLogSaveProvider;

/**
 * @author yotta
 * @date 2023/4/4 19:25
 * 本地调用实现
 */
public class LocalLogSaveProvider extends AbstractManagerLogSaveProvider {

    private final LogService logService;

    public LocalLogSaveProvider(LogService logService) {
        this.logService = logService;
    }

    @Override
    protected void save(LogCreateRequest logCreateRequest) {
        logService.save(logCreateRequest);
    }
}
